home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
BEGINCPP.ARJ
/
#5_VER1.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-08-05
|
4KB
|
139 lines
#line 1 "#5_ver1.cxx"
void *_new(long);
void _delete(void*);
void *_vec_new(void*,int,int,void*(*)(void*));
void _vec_delete(void*,int,int,void(*)(void*,int),...);
void exit(int);
static void cdecl _STI();
static void cdecl _STD();
typedef unsigned int size_t ;
typedef char *va_list ;
struct _iobuf {
char *__iobuf__ptr ;
int __iobuf__cnt ;
char *__iobuf__base ;
char __iobuf__flag ;
char __iobuf__file ;} ;
extern struct _iobuf _iob [];
int _filbuf (struct _iobuf *);
int _flsbuf (int , struct _iobuf *);
void clearerr (struct _iobuf *);
int fclose (struct _iobuf *);
int fcloseall (void );
struct _iobuf *fdopen (int , char *);
int fflush (struct _iobuf *);
int fgetc (struct _iobuf *);
int fgetchar (void );
int fgetpos (struct _iobuf *, long *);
char *fgets (char *, int , struct _iobuf *);
int flushall (void );
struct _iobuf *fopen (char *, char *);
int fprintf (struct _iobuf *, char *, ... );
int fputc (int , struct _iobuf *);
int fputchar (int );
int fputs (char *, struct _iobuf *);
size_t fread (void *, size_t , size_t , struct _iobuf *);
struct _iobuf *freopen (char *, char *, struct _iobuf *);
int fscanf (struct _iobuf *, char *, ... );
int fsetpos (struct _iobuf *, long *);
int fseek (struct _iobuf *, long , int );
long ftell (struct _iobuf *);
size_t fwrite (void *, size_t , size_t , struct _iobuf *);
char *gets (char *);
int getw (struct _iobuf *);
void perror (char *);
int printf (char *, ... );
int puts (char *);
int putw (int , struct _iobuf *);
int remove (char *);
int rename (char *, char *);
void rewind (struct _iobuf *);
int rmtmp (void );
int scanf (char *, ... );
void setbuf (struct _iobuf *, char *);
int setvbuf (struct _iobuf *, char *, int , size_t );
int sprintf (char *, char *, ... );
int sscanf (char *, char *, ... );
char *tempnam (char *, char *);
struct _iobuf *tmpfile (void );
char *tmpnam (char *);
int ungetc (int , struct _iobuf *);
int unlink (char *);
int vfprintf (struct _iobuf *, char *, va_list );
int vprintf (char *, va_list );
int vsprintf (char *, char *, va_list );
struct animal { char _dummy; } ;
struct mammal { char _dummy; } ;
struct bird { char _dummy; } ;
struct dog { char _dummy; } ;
struct eagle { char _dummy; } ;
void print1 (void );
void print2 (void );
void print3 (void );
int main ()
{
{
print1 ( ) ;
print2 ( ) ;
print3 ( ) ;
}
exit ( 0 );
}
extern void print1 ()
{
struct animal *_au1_ap = 0 ;
struct mammal *_au1_mp = 0 ;
struct bird *_au1_bp = 0 ;
struct dog *_au1_dp = 0 ;
struct eagle *_au1_pp = 0 ;
_au1_ap = (((struct animal *)_new ( (long )(sizeof (struct animal ))) ));
( printf ( (char *)"%s\n", "animal") , 0 ) ;
_au1_mp = (((struct mammal *)_new ( (long )(sizeof (struct mammal ))) ));
( printf ( (char *)"%s\n", "mammal") , 0 ) ;
_au1_bp = (((struct bird *)_new ( (long )(sizeof (struct bird ))) ));
( printf ( (char *)"%s\n", "bird") , 0 ) ;
_au1_dp = (((struct dog *)_new ( (long )(sizeof (struct dog ))) ));
( printf ( (char *)"%s\n", "dog") , 0 ) ;
_au1_pp = (((struct eagle *)_new ( (long )(sizeof (struct eagle ))) ));
( printf ( (char *)"%s\n", "eagle") , 0 ) ;
printf ( (char *)"\n") ;
}
extern void print2 ()
{
struct animal *_au1_ap = 0 ;
struct mammal *_au1_mp = 0 ;
_au1_ap = (((struct animal *)_new ( (long )(sizeof (struct animal ))) ));
( printf ( (char *)"%s\n", "animal") , 0 ) ;
( printf ( (char *)"%s\n", "mammal") , 0 ) ;
_au1_mp = (((struct mammal *)_au1_ap ));
( printf ( (char *)"%s\n", "mammal") , 0 ) ;
printf ( (char *)"\n") ;
}
extern void print3 ()
{
struct animal _au1_a ;
struct animal *_au1_ap = 0 ;
struct mammal _au1_m ;
_au1_ap = (& _au1_a );
( printf ( (char *)"%s\n", "animal") , 0 ) ;
_au1_ap = (struct animal *)(& _au1_m );
( printf ( (char *)"%s\n", "animal") , 0 ) ;
printf ( (char *)"\n") ;
}